-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #7055: Fix reporting issue (multiple reports for one component) on branch 2.11 #902
Conversation
PR updated |
14bee58
to
d811af3
Compare
val componentValues = components.flatMap(_.componentValues.filter(v => values.contains(v.componentValue))).groupBy(_.componentValue) | ||
for { | ||
// for each value, process a reporting date | ||
(value,values) <- componentValues |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about those that don't match ?
plus, you are using twice values in 3 lines, so when rereading, it's hard to know which one we use
PR updated |
d811af3
to
24ee5fa
Compare
PR updated |
24ee5fa
to
b12d798
Compare
PR updated |
… with the same value and several messages
5a02c05
to
72b1d31
Compare
OK, so there is a lots of things strange or that I don't understand on the pr. For one, the tests are not passing. Second: it seems that we don't have values anymore, at all, in ComponentStatusReport, but only the unexpanded value. I'm pretty sure we don't want to throw it away (and only rely on the content of reports to hope for it). Or we assume the fact that we are only managing unexpanded values and that we loose the value along the way, and we address the problem in 3.2. Ideas ? |
Ignore the preceding comment, it was for branch 3.0 / pr #904 |
Closing this one because need a rebase, replaced by #911 |
https://www.rudder-project.org/redmine/issues/7055